<?php
/**
 * Created by PhpStorm.
 * User: MrHung
 * Date: 7/2/14
 * Time: 3:17 PM
 */

class CategoryModel extends ModelBase {

    public function getAllCates() {
        /*
         * -------------------------------
         * get All Pages static, Privacy
         * Help, etc.
         * -------------------------------
         */
        $sql = $this->db->query("
        SELECT
        *
        FROM category
        ORDER BY sort ASC
        ");
        return $sql->fetchall();
    }
} 